//
//  MYXHpVocherView.m
//  meiyinxiang
//
//  Created by 媒印象 on 2017/12/20.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import "MYXHpVocherView.h"
#import "LuckyMoneyVocherController.h"
@interface MYXHpVocherView ()
@property (weak, nonatomic) IBOutlet UIImageView *vocherImg;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end
@implementation MYXHpVocherView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+ (MYXHpVocherView *)loadNibWithVocherView{
    UINib *nib = [UINib nibWithNibName:@"MYXHpVocherView" bundle:[NSBundle mainBundle]];
    return [[nib instantiateWithOwner:nil
                              options:nil] lastObject];
}
- (void)setViewModel:(MYXHomepageVocherVIewModel *)viewModel{
    self.vocherImg.image = viewModel.sucessImg;
    self.titleLabel.text = viewModel.title;
}
//查看我的钱包
- (IBAction)gotoSeePocket:(id)sender {
    LuckyMoneyVocherController *vocherListVC = [[LuckyMoneyVocherController alloc] init];
    if (self.tapBlock) {
        self.tapBlock();
    }
    [self.mSuperVC.navigationController pushViewController:vocherListVC animated:YES];
}
@end
